﻿@model Inovout.Organizations.Memberships.Models.OrganizationMembership
@{
    Layout = "~/Views/Shared/_SignLayout.cshtml";
    ViewBag.Title = "三宝云账户";
}


<header class="reg_header">
    <img src="~/Styles/Themes/Google/Images/logo_2x.png" />
    <span>
        <a id="account-link-button">@ViewBag.Membership.Name </a>
         @Html.ActionLink("修改密码", "EditPassWord", "FormsUser", new { returnUrl = ViewBag.ReturnUrl, email = @ViewBag.Membership.Email }, new { @target = "_blank" })                          
       <a href='@Url.Action("SignOut", "Account", new { returnUrl = ViewBag.ReturnUrl })'>退出</a>

    </span>
</header>
<div class="reg_main w80">
    <h1>修改三宝云企业账户</h1>
    <div class="organization_signUp">
        <div class="wgt">
            <div class="w14 organization_img">
                <img src="~/Styles/Themes/Google/Images/avatar_2x.png" />
            </div>
            <div class="organization_signUp_form w35">
                @using (Html.BeginForm("Save", "Organization", new { isEmailValid = ViewBag.IsEmailValid, returnUrl = ViewBag.ReturnUrl ?? Url.Content("~/") }))
                { 
                    @Html.ValidationSummary(true)
                    @Html.HiddenFor(model => model.Id)
                    <div >
                        @Html.LabelFor(model => model.Organization.Name, "机构名称", new { @class = "w5" })
                        @Html.TextBoxFor(model => model.Organization.Name, new { maxlength = 100, placeholder = "机构名称" })
                        @Html.ValidationMessageFor(model => model.Organization.Name)
                    </div>  
                    <div >
                        @Html.LabelFor(model => model.Email, "邮箱地址", new { @class = "w5" })
                        @Html.TextBoxFor(model => model.Email, new { @disabled = "false" })
                        @if (ViewBag.IsEmailValid == true)
                        {
                            <span class="validation-span">
                                <img src="~/Styles/Themes/Google/Images/validation-correct.PNG" alt="已验证" />
                                <span class="hint validation-tip">已验证</span>
                            </span>
                        }
                        @if (ViewBag.IsEmailValid == false)
                        {
                            <span class="validation-span">
                                <img src="~/Styles/Themes/Google/Images/validation-alert.PNG" alt="未验证" />
                                <span class="hint validation-tip">未验证</span>
                            </span>
                        }
                        @Html.ValidationMessageFor(model => model.Email)
                    </div>@*
                    
                    <div class="wgt-l4">
                        @Html.Label("密码", new { @class = "w4 paddingLeft-w2" })
                        @Html.ActionLink("修改", "EditPassWord", "FormsUser", new { returnUrl = ViewBag.ReturnUrl,email=ViewBag.Email }, new { @class = "w-1 linkEditPassword", @target = "_blank" })
                    </div>*@
                            
                    <div class="wgt-l-signUp">
                        <input type="submit" value="保存" class="person_reg" />
                    </div>
                }
            </div>
        </div>

    </div>
</div>


